package com.yww.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yww.entity.Users;
import com.yww.entity.UsersParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户 业务层
 * 杨雯雯
 */

public interface UsersService extends IService<Users>{
    boolean updateByUserId(String loginName);
    Integer updateWrongNum(String loginName);

    Integer updatePassWord(Users users);

    List<Users> getUserNameByLoginName(Users users);

    Integer userIn(Users users);
    Integer userOut(Users users);

    Users getQdStatic(Users users);

    List<Users> getCon(UsersParam usersParam);

    Integer updateWeight(Users users);

    //自动分配
    Integer updateOpenButton(@Param("ids") List<Integer> ids, @Param("num") Integer num);

    List<Users> getUserContainsRole(Integer userId);

    List<String> getNameByManager(Integer userId);

    Integer getLastTime(@Param("lastLoginTime")String lastLoginTime,@Param("loginName")String loginName);

    /**
     * 修改所有人状态
     * @return
     */

    Integer updateStatus();
    /**
     * 修改签到人的状态
     * @return
     */

    Integer updateStatus2();

    /**
     * 清空时间
     * @return
     */

    Integer updateTime();

    Integer emptyTime(Integer userId);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    Integer delBatchUserId(String[] ids);



}
